package com.dq.repository;


import com.dq.domain.sys.section.SysSection;
import com.dq.domain.sys.user.user.base.SysUser;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @创建人 gewenzhen
 * @创建时间 2019/8/15
 * @描述
 */
public interface SysUserRepository extends JpaRepository<SysUser, Long> {

    List<SysUser> findByIdIn(List<Long> userId);

    SysUser findBySectionAndDeletedFalseAndInviteUserIsNull(SysSection sysDept);

    SysUser findBySection(SysSection sysDept);

    boolean existsByUsername(String username);

    SysUser findByUsername(String username);

    SysUser findByMobile(String mobile);

}
